package com.damai.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER,ElementType.FIELD})
public @interface ParamValidate {
	/**
	 * 规则
	 * @return
	 */
	String[] rule() default "";
	
	/**
	 * 出错之后的提示
	 * @return
	 */
	String[] message() default "";
	
	/**
	 * 是否必须
	 * @return
	 */
	String requireMessage() default "";
}
